package max.ta.download;

import java.io.File;
import java.io.IOException;

import junit.framework.TestCase;


public class YahooDownloaderTest
	extends TestCase {

    private static final StockDownloader DOWNLOADER = new YahooDownloader();
    private static final String SYMBOL = "IBM";

    public void test() throws IOException {
	try {
	    File file = DOWNLOADER.download(SYMBOL);
	    assertNotNull(file);
	    assertTrue(file.exists());
	} catch (IOException e) {

	    e.printStackTrace();
	    throw e;
	}
    }


}
